import request from '@/utils/request'

// 查询城市地铁列表
export function listMetro(query) {
  return request({
    url: '/district/metro/list',
    method: 'get',
    params: query
  })
}

// 查询城市地铁详细
export function getMetro(id) {
  return request({
    url: '/district/metro/' + id,
    method: 'get'
  })
}

// 新增城市地铁
export function addMetro(data) {
  return request({
    url: '/district/metro',
    method: 'post',
    data: data
  })
}

// 修改城市地铁
export function updateMetro(data) {
  return request({
    url: '/district/metro',
    method: 'put',
    data: data
  })
}

// 删除城市地铁
export function delMetro(id) {
  return request({
    url: '/district/metro/' + id,
    method: 'delete'
  })
}
